package com.admin.controller.base;

import com.admin.service.CodeImageService;
import com.admin.vo.ResultVO;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Api(description = "验证码接口")
@RestController
@RequestMapping(value = "/code")
public class CodeController {

    @Autowired
    private CodeImageService codeImageService;

    @GetMapping(value = "/image")
    public ResultVO getKaptchaImage() {
        return codeImageService.getCodeImage();
    }
}

